package cn.chencaiju.blog.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.chencaiju.blog.domain.Post;

public interface PostMapper {

	List<Post> selectAll();
	int count();
	List<Post> page(
			@Param("start")int start,
			@Param("size")int size);
	int deleteBatch(String[] ids);
	int insert(Post p);
	List<Post> search(
			@Param("title")String title,
			@Param("cid")String cid,
			@Param("created")String created);
}
